package com.jxk.springcloud.service;

import com.jxk.springcloud.entities.CommonResult;
import com.jxk.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName : PaymentService  //类名
 * @Description :   //描述
 * @Author : jxk  //作者
 * @Date: 2020-09-28 18:10  //时间
 */
@FeignClient(value = "nacos-payment-provider",fallback = PaymentFallbackService.class)
public interface PaymentService
{
    @GetMapping(value = "/paymentSQL/{id}")
    public CommonResult<Payment> paymentSQL(@PathVariable("id") Long id);
}
